<%-- 
  - Author: Abed Yaseen
  - Date: 02-Jan-2012
  - Copyright Notice: TRAKHEES
  - Description: Menu.jsp
 --%>
<%@ include file="/WEB-INF/view/include.jsp"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
    	<div class="t_menu-heading"><spring:message code="menu.header.label" /></div>
		<div id="firstpane" class="menu_list"> <!--Code for menu starts here-->
		<div class="menu_head"><div class="hIcon"><img src="resources/images/company_detail.jpg" /></div><span class="pHead"><a href="client/company/home/show.htm"><spring:message code="menu.label.home" /></a></span></div>
   		<div class="menu_head"><div class="hIcon"><img src="resources/images/company_detail.jpg" /></div><span class="pHead"><spring:message code="menu.label.company_details" /></span><div class="hArrow"><img src="resources/images/close.jpg" /></div></div>
		<div class="menu_body">
			<p><a href="client/company/general/show.htm"><spring:message code="menu.label.gen.info" /></a></p>
			<p><a href="client/company/financial/show.htm"><spring:message code="menu.label.fin.info" /></a></p>
   		</div>
		<div class="menu_head"><div class="hIcon"><img src="resources/images/gov_services.jpg" /></div><span class="pHead"><spring:message code="menu.label.goverment_online_services" /></span><div class="hArrow"><img src="resources/images/close.jpg" /></div></div>
		<div class="menu_body">
			<p><a href="client/company/visa/form.htm?visatype=employment&empsource=0"><spring:message code="menu.label.employment_visa_outside" /></a></p>
		    <p><a href="client/company/visa/form.htm?visatype=employment&empsource=1"><spring:message code="menu.label.employment_visa_inside" /></a></p>					 
			<p><a href="client/company/visa/form.htm?visatype=employment&empsource=3"><spring:message code="menu.label.transfer_sponsorship" /></a></p>
			<p><a href="client/company/visa/form.htm?visatype=employment&empsource=2"><spring:message code="menu.label.internal_transfer" /></a></p>
			
 			<p>
 				<a href="client/company/evrenewal/form.htm"><spring:message code="menu.label.visa_renewal" />
 				</a>
 			</p>

 		    <p> 
		    	<a href="client/company/evterminate/form.htm"><spring:message 
		    		code="menu.label.visa_cancellation" /></a>
			</p> 
			<p> 
				<a href="client/company/visitvisa/form.htm?visatype=visit&empsource=1"><spring:message
					code="menu.label.visit_visa_one_month" /></a>
			</p> 
			<p>
				<a href="client/company/visitvisa/form.htm?visatype=visit&empsource=3"><spring:message
						code="menu.label.visit_visa_three_months" /></a>
			</p>
			<p> 
		    	<a href="client/company/vvcancel/form.htm"><spring:message
					code="menu.visit.visa.canel" /></a>
 			</p> 
<%--  			<p><a href="client/company/evrenewal/form.htm"><spring:message code="menu.label.visa_renewal" /></a></p> --%>
<%-- 		    <p><a href="client/company/evterminate/form.htm"><spring:message code="menu.label.visa_cancellation" /></a></p> --%>
<!-- 			 <p> -->
<!-- 		    	<a href="client/company/vvcancel/form.htm">Visit Visa Cancel</a> -->
<!-- 			</p> -->
<!-- 			<p> -->
<%-- 				<a href="client/company/visitvisa/form.htm?visatype=visit&empsource=1"><spring:message --%>
<%-- 					code="menu.label.visit_visa_one_month" /></a> --%>
<!-- 			</p> -->
<!-- 			<p> -->
<%-- 				<a href="client/company/visitvisa/form.htm?visatype=visit&empsource=3"><spring:message --%>
<%-- 						code="menu.label.visit_visa_three_months" /></a> --%>
<!-- 			</p> -->
<!-- 			 
-->
			<p> 			
				<a href="client/company/nocandletters/submition/form.htm"><spring:message code="menu.label.noc_and_letters" /></a> 
			</p>		 

 			

		</div>
		<div class="menu_head">
			<div class="hIcon">
				<img src="resources/images/inbox.jpg" />
			</div>
			<span class="pHead"><spring:message code="menu.label.inbox" /></span><div class="hArrow"><img src="resources/images/close.jpg" /></div></div>
		<div class="menu_body">
			<p><a href="admin/general/inbox/tasks/show.htm"><spring:message code="menu.label.tasks" /> <span id="newTasksCount" style="color: red;">(${newTasksCount})</span></a></p>
			<p><a href="admin/general/inbox/notifications/show.htm"><spring:message code="menu.label.notifications" /> <span id="newNotificationsCount" style="color: red;">(${newNotificationsCount})</span></a></p>
   		</div>
   		<div class="menu_head"><div class="hIcon"><img src="resources/images/application.jpg" /></div><span class="pHead"><a href="admin/general/all/request/show.htm"><spring:message code="menu.label.all_application_requests" /></a></span></div>
   		<%-- <div class="menu_head"><div class="hIcon"><img src="resources/images/gov_services.jpg" /></div><span class="pHead"><a href="admin/general/finance/services/show.htm?appId=0"><spring:message code="menu.label.fin.services" /></a></span></div> --%>



	
 
		<!--<div class="menu_head">
		<div class="hIcon">
			<img src="resources/images/reports.jpg" />
		</div>
		<span class="pHead"><a
			href="reports/home/show.htm" ><spring:message
					code="menu.label.reports" /></a></span>
		<div class="hArrow"></div>
		</div>-->
		

       <div class="bg_MenuBottom"></div>   

	 


    </div>
    	   
		
    
<script type="text/javascript">

$(document).ready(function()
{
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$("#firstpane div.menu_head").click(function()
    {   
    
     $("#firstpane div.menu_head").each(function()
       	{
       	if(jQuery.browser.msie)
       	{
			if($(this).find(".hArrow").find("img")[0] != null)
			{
	       		var imgOC = $(this).find(".hArrow").find("img")[0].href;
	       	    if(imgOC.indexOf('open.jpg')!=-1)
	       	    {
	       	        $(this).find(".hArrow").find("img")[0].src = "resources/images/close.jpg";
	       	    }
          	 }

       	 }else{// not IE
       	 if($(this).find(".hArrow").find("img")[0] !=null)
{
	       	 var imgOC = $(this).find(".hArrow").find("img")[0].src;
       	    if(imgOC.indexOf('open.jpg')!=-1)
       	    {
       	        $(this).find(".hArrow").find("img")[0].src = "resources/images/close.jpg";
       	    }
}

       	 }
        });
    
        $(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");        
       	 if(jQuery.browser.msie)
       	 {
				if($(this).find(".hArrow").find("img")[0] != null)
				{
					       	var imgOC = $(this).find(".hArrow").find("img")[0].href;
				       	    if(imgOC.indexOf('close.jpg')==-1)
				       	    {
				       	        $(this).find(".hArrow").find("img")[0].src = "resources/images/close.jpg";
				       	    }else{
				       	        $(this).find(".hArrow").find("img")[0].src = "resources/images/open.jpg";
				       	    }
				}

       }else {
			if($(this).find(".hArrow").find("img")[0] != null)
			{
			        var imgOC = $(this).find(".hArrow").find("img")[0].src;
			       	    if(imgOC.indexOf('close.jpg')==-1)
			       	    {
			       	        $(this).find(".hArrow").find("img")[0].src = "resources/images/close.jpg";
			       	    }else{
			       	        $(this).find(".hArrow").find("img")[0].src = "resources/images/open.jpg";
			       	    }
			}

       }
	});
//	//slides the element with class "menu_body" when mouse is over the paragraph
//	$("#secondpane div.menu_head").mouseover(function()
//    {
//	     //$(this).css({backgroundImage:"url(open.jpg)"}).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
//         //$(this).find(".hArrow").css({backgroundImage:"url(close.jpg)"});
//	});
});
</script>

